﻿using System;
using RepositoryAndEf.Domain;
using System.Collections.Generic;
using RepositoryAndEf.Core.Common;
using RepositoryAndEf.Core.Data;
using Moq;

namespace RepositoryAndEf.Service.Tests
{
    public class OrderServiceTests
    {
        public void AddOrder_WithExpectedParameters_Success()
        {
            var customer = new User
            {
                Id = Guid.NewGuid(),
                Name = "Jesse",
            };

            var p = new Product
            {
                Id = Guid.NewGuid(),
                Price = 139,
                Title = "20公斤一副公斤10两只可拆卸电镀哑铃铸铁材质 家用健身器材"
            };

            var order = new Order
            {
                Id = Guid.NewGuid(),
                Customer = customer,
                Items = new List<OrderItem>() 
                {
                    new OrderItem { Id = Guid.NewGuid(), Product = p, Quantity = 1 },
                }
            };
        }
    }
}
